package com.farm.decorator;

import com.farm.AgriculturalMachine;

// 具体组件类
class BasicAgriculturalMachine extends AgriculturalMachine {
    private String type;

    public BasicAgriculturalMachine(String type) {
        this.type = type;
    }

    @Override
    public void operate(String machineName) {
        System.out.println(machineName +  ": " +type + " 正在执行基本操作");
    }

    @Override
    public void displayStatus(String  machineName) {
        System.out.println("");
    }


    @Override
    public String getDescription() {
        return "基本 " + type;
    }
}
